<?php
	$listNewscatHome = $this->requestAction('/comment/listNewscatHome');
	$HomeAdvs = $this->requestAction('/comment/HomeAdvs');
	$listWeblink = $this->requestAction('/advs/listweblink');
	$HomeSupport = $this->requestAction('/comment/HomeSupport');
	$infoCompany = $this->requestAction('/comment/infoCompany');
	//pr($this->params);die();
	$check=false;
	$idCategor=0;
	$idSubCategor=0;
		
	
?>
<div class="clear"></div>


<div class="home_cat">
	<p class="p_home_cat">Danh mục tin tức</p>
	<div class="list_catHome">
		<?php 
			$n=count($listNewscatHome)-1;
			foreach($listNewscatHome as $keyy=>$listNewscatHome){
		?>
			<?php echo $this->Html->link($listNewscatHome['Newscat']['name'], array('controller' => 'news','action'=>'listN',$listNewscatHome['Newscat']['id'],$listNewscatHome['Newscat']['alias'].'.html'), array('escape' => false,'class'=>'a_catHome','style'=>'')); if($n!=$keyy) { ?><a class="a_dotCat"></a><?php } ?>
		<?php }?>
	</div>
</div><!--End .home_cat--><div class="clear"></div>
<!-------------------------------------------------------------------------------->
<div class="home_cat">
	<p class="p_home_cat">Hỗ trợ trực tuyến</p>
	<div class="list_catHome" style="padding-left: 10px;padding-top: 10px;">
		<div class="hotline">
			<span class="title_hotline">Hotline</span>
			<span class="sdt_hotline"><?php echo $infoCompany['Company']['hotline'];?></span>
		</div>
		<p class="tuvan_hotline">Tư vấn trực tuyến</p>
		<?php foreach($HomeSupport as $HomeSupport){?>
		<div class="one_yahoo">
			<span class="name_yahoo"><?php echo $HomeSupport['Support']['name']?></span>
			<span class="nick_yahoo"><a class="a_support" href="ymsgr:sendim?<?php echo $HomeSupport['Support']['yahoo']?>"><img style="width:65px;margin-bottom: 5px;" src="http://opi.yahoo.com/online?u=<?php echo $HomeSupport['Support']['name']?>&amp;m=g&amp;t=1"></a></span>
		</div>
		<?php } ?>
		
	</div>
</div><!--End .home_cat--><div class="clear"></div>
<!-------------------------------------------------------------------------------->
				
<div class="home_cat">
	<p class="p_home_cat">Webs link</p>
	<div class="list_catHome">
		<?php 
			$n=count($listWeblink);
			foreach($listWeblink as $key=>$listWeblink) { ?>
			<a href="<?php echo $listWeblink['Adv']['link']?>" target="_blank"  class="a_weblink"><?php echo $listWeblink['Adv']['title'];?></a>
			<?php if($n!=$key){?><a class="a_dotCat" style="margin: 0px;"></a><?php } ?>
		<?php }?>
	</div>
</div><!--End .home_cat-->
<div class="clear"></div>
<!--------------------------------------------------------------------------------->				
<div class="home_cat">
	<p class="p_home_cat">Quảng cáo</p>
	<div class="list_catHome">
		<?php foreach($HomeAdvs as $HomeAdvs) { ?>
			<a href="<?php echo $HomeAdvs['Adv']['link']?>" target="_blank"><img width="194px" src="<?php echo DOMAIN."/".$HomeAdvs['Adv']['images'];?>"></a>
		<?php }?>
	</div>
</div><!--End .home_cat-->


